.header {
    height: 60px;
    background: var(--color-gradient);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    width: 120px;
    text-align: center;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

.username-display {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 14px;
    color: white;
    opacity: 0.9;
    font-weight: 400;
    white-space: nowrap;
    gap: 10px;
}

.online-users-count {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: rgba(82, 196, 26, 0.1);
    transition: all 0.3s ease;
}

.online-users-count:hover {
    background-color: rgba(82, 196, 26, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.2);
}

.online-users-list {
    min-width: 150px;
    max-height: 200px;
    overflow-y: auto;
}

.online-users-title {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.online-user-item {
    padding: 4px 0;
    color: #555;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.status-text {
    font-size: 14px;
    transition: color 0.3s ease;
}

.title-container {
    flex: 1;
    display: flex;
    justify-content: center;
    user-select: none;
    cursor: pointer;
}

.title-input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    padding: 6px 12px;
    min-width: 200px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.title-inputno-edit {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    padding: 6px 12px;
    min-width: 200px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    cursor: default;
    height: 32px;
    white-space: nowrap;
}

.title-input:focus {
    background: rgba(255, 255, 255, 0.3);
}

.title-input:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.title-placeholder {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.theme-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
}

.theme-switch {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
}

.theme-switch .ant-switch {
    background-color: rgba(255, 255, 255, 0.3);
}

.theme-switch .ant-switch-checked {
    background-color: #001529;
}

.color-picker-trigger {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.color-picker-trigger:hover {
    transform: scale(1.1);
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    width: 240px;
}

.color-item {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.color-item:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    cursor: pointer;
    color: white;
}

.nav-item:hover {
    color: #f0f0f0;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    margin-right: 16px;
}

.title {
    color: white;
    font-size: 19px;
    padding: 6px 12px;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}
